import request from '@/utils/request'
import defaultSettings from '@/settings'

export const apiUrlConfig = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/bsPubliccontrol/loginOrLogout/LoginOrLogoutEntry/search`,
}


// 退出接口
export function logout(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/bsPubliccontrol/loginOrLogout/LoginOrLogoutEntry/logout`,
        method: 'post',
        data
    })
}
// 登录接口
export function login(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/bsPubliccontrol/loginOrLogout/LoginOrLogoutEntry/login`,
        method: 'post',
        data
    })
}
// 查询接口
export function query(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/bsPubliccontrol/loginOrLogout/LoginOrLogoutEntry/query`,
        method: 'post',
        data
    })
}
